<template>
	<view>
		<u-grid :col="4">
        <u-grid-item @tap="catalog">
          <u-icon name="account" :size="46"></u-icon>
          <view class="grid-text">目录</view>
        </u-grid-item>
				<u-grid-item @tap="toAudit">
          <u-icon name="account" :size="46"></u-icon>
          <view class="grid-text">审核</view>
        </u-grid-item>
      </u-grid>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				type: ''
			};
		},
		onLoad(option){
			this.id = option.id
			this.type = option.type;
		},
		methods:{
			catalog(){
				this.$u.route({
					url:'pages/catalog_list/catalog_list',
					params: {
						id: this.id
					}
				})
			},
			toAudit(){
				this.$u.route({
					url: 'pages/audit_list/audit_list',
					params: {
						id: this.id,
						type: 1
					}
				});
    },
		}
	}
</script>

<style lang="scss">

</style>
